import phoneValidate from './phone_validate'

let validatePhone:commonInf.validateFn;
validatePhone = (rule, value, callback, source) =>{

    let errors = [];
    let pass = phoneValidate(value);
    if(!pass && !!value){
        errors.push('手机号码错误')
    }

    callback(errors)
    
}

export default validatePhone